package cn.com.coding.system.service.impl;

import cn.com.coding.common.utils.PageUtil;
import cn.com.coding.common.utils.Query;
import cn.com.coding.system.dao.UserNoticeDao;
import cn.com.coding.system.domin.UserNoticeEntity;
import cn.com.coding.system.service.UserNoticeService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("userNoticeService")
public class UserNoticeServiceImpl extends ServiceImpl<UserNoticeDao, UserNoticeEntity> implements UserNoticeService {

    @Override
    public PageUtil queryPage(Map<String, Object> params) {
        IPage<UserNoticeEntity> page = this.page(
                new Query<UserNoticeEntity>().getPage(params),
                new QueryWrapper<UserNoticeEntity>()
        );

        return new PageUtil(page);
    }

}